package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.RecordMapper;
import com.ygs.secs.model.Record;
import com.ygs.secs.service.RecordService;

@Service
public class RecordServiceImpl implements RecordService {

    @Resource
    private RecordMapper recordMapper;

    @Override
    public int deleteByPrimaryKey(Integer recordid) {
        return recordMapper.deleteByPrimaryKey(recordid);
    }

    @Override
    public int insert(Record record) {
        return recordMapper.insert(record);
    }

    @Override
    public int insertSelective(Record record) {
        return recordMapper.insertSelective(record);
    }

    @Override
    public Record selectByPrimaryKey(Integer recordid) {
        return recordMapper.selectByPrimaryKey(recordid);
    }

    @Override
    public int updateByPrimaryKeySelective(Record record) {
        return recordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Record record) {
        return recordMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Record> list) {
        return recordMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Record> list) {
        return recordMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Record> list) {
        return recordMapper.batchInsert(list);
    }

    @Override
    public List<Record> getRecordlistByjobid(String jobid) {
        return recordMapper.getRecordlistByjobid(jobid);
    }

    @Override
    public List<Record> getRecordlistBystuid(String stuid) {
        return recordMapper.getRecordlistBystuid(stuid);
    }

    @Override
    public int checkpostionnum(String stuid) {
        return recordMapper.checkpostionnum(stuid);
    }

    @Override
    public Record checkrecord(String stuid, String jobid) {
        return recordMapper.checkrecord(stuid, jobid);
    }

    @Override
    public Record findrecordbyid(int recordid) {
        return recordMapper.findrecordbyid(recordid);
    }

}
